﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace QuanLyDiemHocSinh
{
    public partial class Xem_In_Diem : System.Web.UI.Page
    {
        String tendn;
        protected void Page_Load(object sender, EventArgs e)
        {
         tendn = Session["tendn"].ToString();
            string chuoiketnoi = "Server=.\\SqlExpress;Integrated Security=True;Database=QuanLyDiem";
            SqlConnection ketnoi = new SqlConnection(chuoiketnoi);

            SqlDataReader rdr = null;
            SqlCommand cmd = new SqlCommand("SELECT Hocsinh.TenHocSinh,Hocsinh.NgaySinh,Hocsinh.NoiSinh,Hocsinh.GioiTinh,Hocsinh.DiaChi,Lop.TenLop FROM NguoiDung INNER JOIN Lop ON HocSinh.MaLop=Lop.MaLop;", ketnoi);
            try
            {
                ketnoi.Open();
            }
            catch (Exception exx)
            {

            }
        }
    }
}